package com.hice.demo.sbdbra.model;
import org.beetl.sql.core.TailBean;
import org.beetl.sql.core.annotatoin.AssignID;
import org.beetl.sql.core.annotatoin.AutoID;

import java.io.Serializable;
import java.util.Date;

/*
* 
* gen by beetlsql 2017-02-21
*/
public class User extends TailBean implements Serializable{
	private Long id ;
	//年龄
	private Integer age ;
	//性别(0：男，1：女）
	private Integer sex ;
	//身份证编码
	private String cardId ;
	//身份证姓名
	private String cardName ;
	//邮箱
	private String email ;
	//~json扩展信息
	private String jsonInfo ;
	//用户昵称
	private String nickname ;
	//手机号（格式+86）
	private String phone ;
	//！密码盐责
	private String salt ;
	//*用户编码
	private Long userId ;
	//用户名
	private String userName ;
	//*新密码
	private String userPassword ;
	//！旧密码
	private String userPasswordOld ;
	//创建时间
	private Date createTime ;
	//表更新时间
	private Date updateTime ;
	
	public User() {
	}

	public Long getId(){
		return  id;
	}
	public void setId(Long id ){
		this.id = id;
	}
	
	public Integer getAge(){
		return  age;
	}
	public void setAge(Integer age ){
		this.age = age;
	}
	
	public Integer getSex(){
		return  sex;
	}
	public void setSex(Integer sex ){
		this.sex = sex;
	}
	
	public String getCardId(){
		return  cardId;
	}
	public void setCardId(String cardId ){
		this.cardId = cardId;
	}
	
	public String getCardName(){
		return  cardName;
	}
	public void setCardName(String cardName ){
		this.cardName = cardName;
	}
	
	public String getEmail(){
		return  email;
	}
	public void setEmail(String email ){
		this.email = email;
	}
	
	public String getJsonInfo(){
		return  jsonInfo;
	}
	public void setJsonInfo(String jsonInfo ){
		this.jsonInfo = jsonInfo;
	}
	
	public String getNickname(){
		return  nickname;
	}
	public void setNickname(String nickname ){
		this.nickname = nickname;
	}
	
	public String getPhone(){
		return  phone;
	}
	public void setPhone(String phone ){
		this.phone = phone;
	}
	
	public String getSalt(){
		return  salt;
	}
	public void setSalt(String salt ){
		this.salt = salt;
	}
	@AutoID
	@AssignID("simple")
	public Long getUserId(){
		return  userId;
	}
	public void setUserId(Long userId ){
		this.userId = userId;
	}
	
	public String getUserName(){
		return  userName;
	}
	public void setUserName(String userName ){
		this.userName = userName;
	}
	
	public String getUserPassword(){
		return  userPassword;
	}
	public void setUserPassword(String userPassword ){
		this.userPassword = userPassword;
	}
	
	public String getUserPasswordOld(){
		return  userPasswordOld;
	}
	public void setUserPasswordOld(String userPasswordOld ){
		this.userPasswordOld = userPasswordOld;
	}
	
	public Date getCreateTime(){
		return  createTime;
	}
	public void setCreateTime(Date createTime ){
		this.createTime = createTime;
	}
	
	public Date getUpdateTime(){
		return  updateTime;
	}
	public void setUpdateTime(Date updateTime ){
		this.updateTime = updateTime;
	}


	@Override
	public String toString() {
		return "User{" +
				"id=" + id +
				", age=" + age +
				", sex=" + sex +
				", cardId='" + cardId + '\'' +
				", cardName='" + cardName + '\'' +
				", email='" + email + '\'' +
				", jsonInfo='" + jsonInfo + '\'' +
				", nickname='" + nickname + '\'' +
				", phone='" + phone + '\'' +
				", salt='" + salt + '\'' +
				", userId=" + userId +
				", userName='" + userName + '\'' +
				", userPassword='" + userPassword + '\'' +
				", userPasswordOld='" + userPasswordOld + '\'' +
				", createTime=" + createTime +
				", updateTime=" + updateTime +
				'}';
	}
}
